package cn.dzhang.spring.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import cn.dzhang.spring.model.User;

@Repository
public interface UserRepository extends JpaRepository<User, String> {
	List<User> findByName(String name);

	User findByUsername(String username);
}
